package com.wxp.service;

import com.wxp.entity.Unit;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;

/**
* Created by lewis on 2018-3-1 10:02:14.
*/
public interface UnitService {
     Page<Unit> findAll(Pageable pageable);
     Page<Unit> findAll(Specification<Unit> spec, PageRequest pageRequest);
     Unit get(java.lang.String unitCode);
     List<Unit> findAll();
     List<Unit> findAll(Specification<Unit> spec);
     List<Unit> findAll(Specification<Unit> spec,Sort sort);
     public String saveUnit(Unit unit);
     public void deleteUnit(Unit unit);
     public void deleteUnit(java.lang.String unitCode);
}
